package com.yunwaikeji.gy_tool_library.model;

public class GYDownloadModel {
    private long connectTimeout = 15000;
    private long writeTimeout = 20000;
    private long readTimeout = 20000;
    private String path = "GYDownload";//缓存目录
    private int size = 1024 * 1024 * 10;//默认 10M 缓存大小
    private String name;
    private String url;
    private int smallIcon;

    public long getConnectTimeout() {
        return connectTimeout;
    }

    public GYDownloadModel setConnectTimeout(long connectTimeout) {
        this.connectTimeout = connectTimeout;
        return this;
    }

    public long getWriteTimeout() {
        return writeTimeout;
    }

    public GYDownloadModel setWriteTimeout(long writeTimeout) {
        this.writeTimeout = writeTimeout;
        return this;
    }

    public long getReadTimeout() {
        return readTimeout;
    }

    public GYDownloadModel setReadTimeout(long readTimeout) {
        this.readTimeout = readTimeout;
        return this;
    }

    public String getPath() {
        return path;
    }

    public GYDownloadModel setPath(String path) {
        this.path = path;
        return this;
    }

    public int getSize() {
        return size;
    }

    public GYDownloadModel setSize(int size) {
        this.size = size;
        return this;
    }

    public String getName() {
        return name;
    }

    public GYDownloadModel setName(String name) {
        this.name = name;
        return this;
    }

    public String getUrl() {
        return url;
    }

    public GYDownloadModel setUrl(String url) {
        this.url = url;
        return this;
    }
}
